package com.example.attendance_back.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;


/**
 * 序列化    ----  json字符串
 *    序列化
 *       对象----编码机制 > 字符串
 *    反序列化
 *       字符串 --- 解码机制> 对象
 * */
public class Student implements Serializable {

    private Integer studentId;

    @JsonIgnore
    private String username;
    @JsonIgnore
    private  String password;
    private String name;

    private String token;

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token==null?"":token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
